package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
@TableName("attendance")
public class Attendance {

    @TableId
    private int id; // 主键
    private int memberId; // 学生ID
    private LocalDate date; // 考勤日期
    private LocalTime checkIn; // 签到时间
    private LocalTime checkOut; // 签退时间
    private String status; // 考勤状态：正常、迟到、早退、缺勤
    @TableField(exist = false)
    private String nickname;
}
